home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12294 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  815 b 

  1. Path: newsfeed.internetmci.com!iol!usenet
  2. From: David Byrden <goyra@iol.ie>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: 'delete' dos not work !!!! (for me...)
  5. Date: 19 Mar 1996 08:37:39 GMT
  6. Organization: Ireland On-Line
  7. Message-ID: <4ilroj$i7n@nuacht.iol.ie>
  8. References: <ROLLET.96Mar18215549@oriole.DMI.USherb.CA>
  9. NNTP-Posting-Host: dialup-277.dublin.iol.ie
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.22KIT (Windows; I; 16bit)
  14.  
  15.  
  16. >> In that piece of code... delete never free the variable donnee (or don 
  17. >> in the second function)...
  18.  
  19.  
  20.     If you use new[] to allocate an array of objcts, you must use delete[] 
  21. to free it, despite the fact that the resulting pointers have the same 
  22. type.
  23.  
  24.               
  25.  
  26.                                  David
  27.  
  28.  
  29.